package policies

import (
	"gitee.com/sweetsunnyflower/carpooling-server-go/app/models/trip"
)

func CanModifyTrip(userId uint64, trip trip.Trip) bool {
	// return userId == trip.UserId
	return true
}

func CanCreateTrip(userId uint64, trip trip.Trip) bool {
	// return userId == trip.UserId
	return true
}

func CanUpdateTrip(userId uint64, trip trip.Trip) bool {
	// return userId == trip.UserId
	return true
}

func CanDeleteTrip(userId uint64, trip trip.Trip) bool {
	// return userId == trip.UserId
	return true
}

func CanViewTrip(userId uint64, trip trip.QueryTrip) bool {
	return userId == trip.UserId
}
